package cn.tedu.coolshark.pojo.entity;

import java.util.Date;

public class Product {
    private Integer id;
    private String title;
    private Double price;
    private Double oldPrice;
    private Integer saleCount;
    private Integer num;
    private String url;
    private Integer categoryId;
    private Integer viewCount;
    private Date created;

    public Product() {
    }

    public Product(Integer id, String title, Double price, Double oldPrice, Integer saleCount, Integer num, String url, Integer categoryId, Integer viewCount, Date created) {
        this.id = id;
        this.title = title;
        this.price = price;
        this.oldPrice = oldPrice;
        this.saleCount = saleCount;
        this.num = num;
        this.url = url;
        this.categoryId = categoryId;
        this.viewCount = viewCount;
        this.created = created;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 获取
     * @return oldPrice
     */
    public Double getOldPrice() {
        return oldPrice;
    }

    /**
     * 设置
     * @param oldPrice
     */
    public void setOldPrice(Double oldPrice) {
        this.oldPrice = oldPrice;
    }

    /**
     * 获取
     * @return saleCount
     */
    public Integer getSaleCount() {
        return saleCount;
    }

    /**
     * 设置
     * @param saleCount
     */
    public void setSaleCount(Integer saleCount) {
        this.saleCount = saleCount;
    }

    /**
     * 获取
     * @return num
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 获取
     * @return url
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取
     * @return categoryId
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * 设置
     * @param categoryId
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取
     * @return viewCount
     */
    public Integer getViewCount() {
        return viewCount;
    }

    /**
     * 设置
     * @param viewCount
     */
    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    /**
     * 获取
     * @return created
     */
    public Date getCreated() {
        return created;
    }

    /**
     * 设置
     * @param created
     */
    public void setCreated(Date created) {
        this.created = created;
    }

    public String toString() {
        return "Product{id = " + id + ", title = " + title + ", price = " + price + ", oldPrice = " + oldPrice + ", saleCount = " + saleCount + ", num = " + num + ", url = " + url + ", categoryId = " + categoryId + ", viewCount = " + viewCount + ", created = " + created + "}";
    }
}
